package com.supcon.tea.work.questionnaire.domain;

import org.hibernate.validator.constraints.Range;

/**
 * Created by zhengjian1 on 2017/7/25.
 */
public class Answer {
    private Integer id;

    @Range(min=1, max=67,message = "questionId在1-67之间")
    private Integer questionId;

    @Range(min=1, max=5,message = "optionKey在1-5之间")
    private Integer optionKey;
    private Integer UserPhysiqueId;

    public Integer getId() {
        return id;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public Integer getOptionKey() {
        return optionKey;
    }

    public Integer getUserPhysiqueId() {
        return UserPhysiqueId;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public void setOptionKey(Integer optionKey) {
        this.optionKey = optionKey;
    }

    public void setUserPhysiqueId(Integer userPhysiqueId) {
        UserPhysiqueId = userPhysiqueId;
    }

    @Override
    public String toString() {
        return "Answer{" +
                "id=" + id +
                ", questionId=" + questionId +
                ", optionKey='" + optionKey + '\'' +
                ", UserPhysiqueId=" + UserPhysiqueId +
                '}';
    }
}
